package com.studynotes.dev.tech.common.base;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

/**
 * @author Liu XiaoJun
 * @description: 分页参数
 * @date 2025-11-07 14:27:49
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "BasePage", description ="分页参数")
public class BasePage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 页码
     */
    @Schema(name = "pageNum", description = "页码")
    private Integer pageNum;

    /**
     * 每页数据数
     */
    @Schema(name = "pageSize", description = "每页数据数")
    private Integer pageSize;

    /**
     * 排序字段
     */
    @Schema(name = "orderByColumn", description = "排序字段")
    private String orderByColumn;

    /**
     * 排序方式
     */
    @Schema(name = "orderByType", description = "排序方式，1：正序，-1：反序")
    private String orderByType;

}
